public class Post {
    private String title;
    private String content;
    private String author;
    private String category;
    private String username;
    private String imageUrl;

    public Post(String title, String content, String author, String category, String username, String imageUrl) {
        this.title = title;
        this.content = content;
        this.author = author;
        this.category = category;
        this.username = username;
        this.imageUrl = imageUrl;
    }

    // Getters 和 Setters
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
}
